﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="SearchResult.aspx.cs" Inherits="WuxiWTO.Web.SearchResult" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="main_con">
        <h2 class="main_con_title">
            站内搜索</h2>
        <p>
            <table cellspacing="0" cellpadding="0" class="search_tb">
                <tr>
                    <td>
                        栏&nbsp;&nbsp;目：
                    </td>
                    <td>
                        <asp:DropDownList CssClass="select" ID="ddlParent" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td width="60" align="right">
                        类&nbsp;&nbsp;型：
                    </td>
                    <td>
                        <select class="select" id="search_field_list">
                            <option value="title">标题</option>
                        </select>
                    </td>
                    <td width="60" align="right">
                        关键字：
                    </td>
                    <td width="130">
                        <asp:TextBox CssClass="txt" MaxLength="50" ID="txtKeyWords" runat="server" />
                    </td>
                    <td>
                        &nbsp;&nbsp;<asp:ImageButton ID="btnSearch" ImageUrl="~/images/search.png" runat="server"
                            OnClick="btnSearch_Click" />
                    </td>
                </tr>
            </table>
            <br />
            <asp:Repeater ID="rptNews" runat="server">
                <HeaderTemplate>
                    <table class="tb_sraech" align="center" cellspacing="0" cellpadding="0">
                        <thead>
                            <th width="660">
                                标 题
                            </th>
                            <th width="130">
                                点击数
                            </th>
                            <th width="180">
                                添加时间
                            </th>
                        </thead>
                        <tbody>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            ●&nbsp;<a target="_blank" href='articleDetails.aspx?aid=<%# Eval("article_id") %>'><%# WutiWTO.Common.Utility.CutStringByLength(Eval("article_title").ToString(),30) %></a>
                        </td>
                        <td align="center">
                            <%# Eval("read_count") %>次
                        </td>
                        <td align="center">
                            <%# Eval("created_date","{0:yyyy-MM-dd}") %>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </tbody> </table>
                </FooterTemplate>
            </asp:Repeater>
            <div class="pages">
                <table cellpadding="0" cellspacing="0" align="center" width="100%">
                    <tr>
                        <td align="left">
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="100%" SubmitButtonImageUrl="admin/tab/images/go.gif"
                                CssClass="taobao" CurrentPageButtonClass="cpb" AlwaysShow="true" ButtonImageAlign="Bottom"
                                PrevPageText="上一页" NextPageText="下一页" FirstPageText="首页" LastPageText="尾页" ShowFirstLast="true"
                                PageSize="15" CurrentPageButtonPosition="End" CustomInfoHTML="第%CurrentPageIndex%/%PageCount%页，共%RecordCount%条记录,每页%PageSize%条"
                                PageIndexBoxType="DropDownList" ShowCustomInfoSection="Left" ShowPageIndexBox="Never"
                                SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" OnPageChanged="AspNetPager1_PageChanged">
                            </webdiyer:AspNetPager>
                        </td>
                    </tr>
                </table>
            </div>
        </p>
    </div>
</asp:Content>
